# 3
print(10 % 7)

# -3 > -4
# 10 == -7 * 3 +  -4
print(10 % -7)
# 10 == -7 * n + k
# 10 == -7 * -1 + 3
# 10 == -7 * 1 + 17
# 10 == -7 * 2 + 24

# 3 -> 4
# -10 == 7 * -2 + 4
print(-10 % 7)
# -10 == 7 * n + k
# -10 == 7 * -1 + 3
# -10 == 7 * 1 + -17
# -10 == 7 * -2 + 4

# -3
# -10 == -7 * 1 + -3
print(-10 % -7)